package com.gxa.employment.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 方向管理表
 * </p>
 *
 * @author author
 * @since 2025-03-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_major")
public class Major implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 方向ID
     */
    @TableId(value = "major_id", type = IdType.AUTO)
    private Integer majorId;

    /**
     * 方向名称
     */
    @TableField("major_name")
    private String majorName;

    /**
     * 创建时间
     */
    @TableField("created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime created;

    /**
     * 更新时间
     */
    @TableField("updated")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updated;

    /**
     * 逻辑删除标识
     */
    @TableField("deleted")
    private Boolean deleted;
}
